package ltd.dujiabao.reserver.util;

import java.util.concurrent.TimeUnit;

/**
 * @author : DuJiabao
 * @Project : reserver
 * @Time : 2021/11/7 15:50
 * @Desc :
 */
public class TimeUtils {
    public static void sleepMin(int min) {
        try {
            TimeUnit.MINUTES.sleep(min);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    public static void sleepSecond(int second) {
        try {
            TimeUnit.SECONDS.sleep(second);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
